package cn.flexui.flexuiserver.domain.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.math.BigDecimal;

/**
 * <p>
 * 账户表
 * </p>
 *
 * @author apeto
 * @since 2024-09-22 01:57:56
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("account")
@Schema(name = "Account", description = "账户表")
public class Account extends BaseEntity<Account> {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "用户ID")
    @TableField("user_id")
    private Long userId;

    @Schema(description = "账户余额")
    @TableField("account_balance")
    private BigDecimal accountBalance;

    @Schema(description = "账户类型")
    @TableField("account_type")
    private Integer accountType;
}
